package com.mt.roll.wms.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mt.roll.core.dal.entity.Location;
import com.mt.roll.wms.params.AreaLocationQueryParam;
import com.mt.roll.wms.params.AreaShelfQueryParam;
import com.mt.roll.wms.params.ProcessQueryParam;
import com.mt.roll.wms.vo.AreaLocationVo;
import com.mt.roll.wms.vo.LocationVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * @auther yanyang
 * @date 2021/11/29 10:59
 */

@Repository
public interface AreaLocationVoMapper extends BaseMapper<Location> {

    IPage<AreaLocationVo> locationByShelf(Page<Object> objectPage, @Param("param") AreaShelfQueryParam areaShelfQueryParam);
    AreaLocationVo locationById(Long id);
    IPage<AreaLocationVo> locationByProcess(Page<Object> objectPage, @Param("param") ProcessQueryParam processQueryParam);
}
